package de.tabuma.soap.entity.wsdl;

import java.util.*;
import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;operation&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="operation",mappingType=SoapClassMapping.MappingType.WSDL))
public class TBindingOperation implements Serializable {

    public TBindingOperation() {
        super();
        this.tExtensibleDocumentedId = new Long(0);
        this.inputId = new Long(0);
        this.outputId = new Long(0);
        this.fault = new ArrayList<Long>();
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    @SoapExtendsDefinition(extendsClass=TExtensibleDocumented.class)
    private Long tExtensibleDocumentedId;
    public Long getTExtensibleDocumentedId() {
        return tExtensibleDocumentedId;
    }
    public void setTExtensibleDocumentedId(Long tExtensibleDocumentedId) {
        this.tExtensibleDocumentedId = tExtensibleDocumentedId;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=TBindingOperationMessageInput.class))
    protected Long inputId = new Long(0);
    public Long getInputId() {
        return inputId;
    }
    public void setInputId(Long inputId) {
        this.inputId = inputId;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=TBindingOperationMessageOutput.class))
    protected Long outputId = new Long(0);
    public Long getOutputId() {
        return outputId;
    }
    public void setOutputId(Long outputId) {
        this.outputId = outputId;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=TBindingOperationFault.class))
    protected List<Long> fault;
    public List<Long> getFault() {
        if(this.fault==null) {
            this.fault = new ArrayList<Long>();
        }
        return fault;
    }
    public void setFault(List<Long> fault) {
        this.fault = fault;
    }

    @Persistent
    @SoapAttribute
    protected String name;
    public String getName() {
        return name;
    }
    public void setName(String value) {
        this.name = value;
    }
}
